use axum::{
    routing::{get, put},
    Router,
};
mod master;

pub fn auth_routes() -> Router{
    Router::new()
    .route("/",      get(master::list).post(master::save).put(master::save))
    .route("/{id}", get(master::find).delete(master::del))
    .route("/enabled/{id}", put(master::enabled))
    .route("/info", get(master::info))
    .route("/database", get(master::database))
    .route("/dict", get(master::dict))
}